{% extends "base.html" %}
{% block title %}网址导航{% endblock %}
{% block extra_head %}
<meta http-equiv="refresh" content="600"/>
<script type="text/javascript" src="/static/jquery/jquery-1.11.3.min.js"></script>
{% endblock %}
{% block content %}
  <div id="nav_menu">
    <h1>
      <img src="/static/imgs/list3_16px.png">&nbsp;&nbsp;
      <a href="">全部分类</a>
    </h1>
    <h2><a onclick="classify('se')">搜索引擎</a></h2>
    <h2><a onclick="classify('usual')">常用网址</a></h2>
    <h2><a onclick="classify('technology')">技术学习</a></h2>
    <h2><a onclick="classify('tool')">工具资料</a></h2>
    <h2><a onclick="classify('opensource')">开源世界</a></h2>
    <h2><a onclick="classify('material')">素材模板</a></h2>
    <h2><a onclick="classify('resources')">资源搜索</a></h2>
    <h2><a onclick="classify('collection')">收藏备份</a></h2>
    <h2><a onclick="classify('flink')">友情链接</a></h2>
    <h2><a onclick="classify('music')">遇见音乐</a></h2>
    <h2><a onclick="classify('translation')">在线翻译</a></h2>
    <h2><a onclick="classify('cloudisk')">网络云盘</a></h2>
    <h2><a onclick="classify('aboutme')">关于我的</a></h2>
  </div>
  <div id="nav_content">

      {% for favorite in favorites %}
      {% if favorite.category == "se" %}
      <div class="category"><span class="title"><div class="shade">搜索引擎</div></span>
        <div class="item"><img src="{{ favorite.icon }}"/><a href="{{ favorite.url }}" title="{{ favorite.title }}" target="_blank">{{ favorite.name }}</a></div>
      </div>
      {% endfor %}
  </div>
{% endblock %}
